/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package monash.med.crystallography.DataSetTools.DiffdumpXML;

import java.util.Comparator;

/**
 *
 * @author steve
 */
class rotationRangeComparator implements Comparator {

    public int compare(Object ddo1, Object ddo2) {

        Double ddoSubject1 =
                ((DiffdumpOut) ddo1).getOscillationEnd();
        Double ddoSubject2 =
                ((DiffdumpOut) ddo2).getOscillationEnd();

        return ddoSubject1.compareTo(ddoSubject2);
    }
}